<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head th:insert="/admin/common/head::css"></head>
<body>
<div th:insert="/admin/common/header::header" ></div>
<!--  main  -->
<div id = "app">
  <div class="container-fluid">
    <div class="row-fluid">
      <div th:insert="/admin/common/side::side" ></div>
      <!-- content -->
      <div style="display: flex; flex-direction: column">
        <div class="span10" id="content">
          <div class="row-fluid">
            <!-- block -->
            <div class="block">
              <div class="navbar navbar-inner block-header">
                <!--                <form method="post" th:action="@{/admin/user/page}">-->
                <!--                  <input name="search" value=""/>-->
                <!--                  <button type="submit" class="btn btn-primary"  >搜索</button>-->
                <!--                </form>-->
              </div>
              <div class="block-content collapse in">
                <div class="span12">
                  <table class="table">
                    <thead>
                    <tr>
                      <th>就读学校</th>
                      <th>城市</th>
                      <th>就读学位</th>
                      <th>公司</th>
                      <th>职位</th>
                      <th>薪资</th>
                      <th>就业信息</th>
                      <th>开始时间</th>
                      <th>结束时间</th>
                      <th>是否可见</th>
                      <th>问卷</th>
                      <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr th:each = "jiuye : ${jiuyes}">
                      <td th:text="${jiuye.school}"></td>
                      <td th:text="${jiuye.city}"></td>
                      <td th:text="${jiuye.xuewei}"></td>
                      <td th:text="${jiuye.company}"></td>
                      <td th:text="${jiuye.position}"></td>
                      <td th:text="${jiuye.salary}"></td>
                      <td th:text="${jiuye.type == 0?'读研':'就业'}"></td>
                      <td th:text="${#dates.format(jiuye.begintime, 'yyyy-MM')}"></td>
                      <td th:text="${#dates.format(jiuye.endtime, 'yyyy-MM')}"></td>
                      <td th:text="${jiuye.flag == 0?'可见':'不可见'}"></td>
                      <td th:text="${jiuye.diaocha.message}"></td>
                      <td>
                        <!--            //这样可以拿到对应数据-->
                        <a class="btn btn-default" th:href="@{/admin/user/myjiuye/detail(id = ${jiuye.id})}" role="button">编辑</a>
                        <!--                        <a class="btn btn-default" th:href="@{/admin/user/myjiuye/delete(id = ${jiuye.id})}" role="button">删除</a>-->
                      </td>
                    </tr>
                    </tbody>
                  </table>
                </div>
              </div>
            </div>
            <!-- /block -->
          </div>
        </div>
        <!--        <div th:insert = "/admin/common/page::page"></div>-->
      </div>
      <!-- content -->
    </div>
  </div>
</div>
<!--  main  -->
</body>
<div th:insert="/admin/common/footer::js" ></div>
</html>